<template>
	<view>
		<uni-list style="width: 100%;">
			<uni-list-item
			title= "人员管理" 
			clickable
			:showArrow= "true" 
			@click= "goWorker" />
			<uni-list-item
			title="邀请管理" 
			showArrow
			clickable 
			@click="goWorkerInvite" />
		</uni-list>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onShow() {
			if (!this.$dry.isLogin()) {
				uni.showModal({
					title: "信息",
					content: "需要登录后查看，去登录",
					showCancel: false,
					confirmText: "确定",
					success: function(res) {
						if (res.confirm) {
							uni.switchTab({
								url: '../user/user',
							})
						}
					}
				});
			}
		},
		methods: {
			goWorker() {
				uni.navigateTo({
					url: 'worker'
				})
			},
			goWorkerInvite(){
				uni.navigateTo({
					url: "invite"
				})
			},
		}
	}
</script>

<style>

</style>
